package com.aowin.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.aowin.dao.BookMapper;
import com.aowin.entity.Book;
import com.aowin.entity.ShowImg;

@RestController
public class BookController {
	@Autowired
	BookMapper bookMapper;
	@RequestMapping("/getBooks")
	public List<Book> getBooks(){
		return bookMapper.getBooks();
	}
	@RequestMapping("/showImages")
	public List<ShowImg> getImages(){
		return bookMapper.getImages();
	}
	@RequestMapping("/showADBooks")
	public List<Book> getADBooks(){
		return bookMapper.getadBooks();
	}
}
